/*
 * @(#)IndustryVO.java
 * Copyright (c) 2011 TravelSky Technology Ltd. All Right Reserved. 
 */
package com.meetingshow.meeting.uiservice.model;

import com.meetingshow.common.base.uiservice.model.BaseVO;
import com.meetingshow.meeting.dao.model.IndustryPO;

public class IndustryVO extends BaseVO {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 7524820965501885833L;
	private java.lang.Integer industryId;
        
    public void setIndustryId(java.lang.Integer industryId) {
        this.industryId = industryId;
    }
        
    public java.lang.Integer getIndustryId() {
        return industryId;
    }
    private java.lang.Integer parentId;
        
    public void setParentId(java.lang.Integer parentId) {
        this.parentId = parentId;
    }
        
    public java.lang.Integer getParentId() {
        return parentId;
    }
    private java.util.Date createTime;
        
    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }
        
    public java.util.Date getCreateTime() {
        return createTime;
    }
    private java.lang.String name;
        
    public void setName(java.lang.String name) {
        this.name = name;
    }
        
    public java.lang.String getName() {
        return name;
    }
    private java.lang.String nameEn;
        
    public void setNameEn(java.lang.String nameEn) {
        this.nameEn = nameEn;
    }
        
    public java.lang.String getNameEn() {
        return nameEn;
    }

    public IndustryVO() {
    }

    public IndustryVO(IndustryPO industryPO) {
        setIndustryId(industryPO.getIndustryId());
        setParentId(industryPO.getParentId());
        setCreateTime(industryPO.getCreateTime());
        setName(industryPO.getName());
        setNameEn(industryPO.getNameEn());
    }

    public IndustryPO toIndustryPO() {
        IndustryPO industryPO = new IndustryPO();
        
        industryPO.setIndustryId(getIndustryId());
        industryPO.setParentId(getParentId());
        industryPO.setCreateTime(getCreateTime());
        industryPO.setName(getName());
        industryPO.setNameEn(getNameEn());
        
        return industryPO;
    }
}